/*
 * =====================================================================================
 *
 *       Filename:  cl_common_defs.hxx
 *
 *    Description:  common definition of const variable
 *
 *        Version:  1.0
 *        Created:  02/28/2010 05:58:03 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Ken Chen (Ziliang), zlchen.ken@gmail.com
 *        Company:  EMC
 *
 * =====================================================================================
 */

#ifndef _CL_COMMON_DEFS_HXX_
#define _CL_COMMON_DEFS_HXX_

namespace neo
{
enum CLSocketType
{
  CL_SOCK_STREAM,
  CL_SOCK_DGRAM 
};

extern int clSocketTypeToNativeType(CLSocketType type);

enum CLConnCloseType
{
  CL_SHUT_RD,
  CL_SHUT_WR,
  CL_SHUT_RDWR
};

extern int clConnCloseTypeToNativeType(CLConnCloseType type);

} // neo

#endif //_CL_COMMON_DEFS_HXX_

